<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
	<!ENTITY lower "abcdefghijklmnopqrstuvwxyz">
	<!ENTITY upper "ABCDEFGHIJKLMNOPQRSTUVWXYZ">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:output method="xml" indent="yes"/>	
	<xsl:param name="url.base"/>
	<xsl:variable name="url.images">
		<xsl:value-of select="$url.base"/>src/main/resources/digitas/img</xsl:variable>
	<xsl:variable name="modelImage" select="//model/image"/>
	<xsl:template match="lcb">
		<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
			<fo:layout-master-set>
				<fo:simple-page-master master-name="last" page-height="297mm" page-width="210mm" margin="0mm">
					<fo:region-body margin="20mm 10mm 60mm 10mm"/>
					<fo:region-before extent="20mm"/>
					<fo:region-after margin-left="10mm" margin-right="10mm" extent="50mm" region-name="footer-last"/>
				</fo:simple-page-master>
				<fo:simple-page-master master-name="rest" page-height="297mm" page-width="210mm" margin="0mm">
					<fo:region-body margin="20mm 10mm 60mm 10mm"/>
					<fo:region-before extent="20mm"/>
					<fo:region-after margin-left="10mm" margin-right="10mm" extent="50mm" region-name="footer-rest"/>
				</fo:simple-page-master>
				<fo:page-sequence-master master-name="document-sequence">
					<fo:repeatable-page-master-alternatives>
						<fo:conditional-page-master-reference page-position="first" master-reference="rest"/>
						<fo:conditional-page-master-reference page-position="last" master-reference="last"/>
						<fo:conditional-page-master-reference page-position="rest" master-reference="rest"/>
					</fo:repeatable-page-master-alternatives>
				</fo:page-sequence-master>
			</fo:layout-master-set>
			<fo:page-sequence master-reference="document-sequence">
				<fo:static-content flow-name="xsl-region-before">
					<fo:block>
						<fo:external-graphic src="{$url.images}/logo.jpg" height="20mm"/>
					</fo:block>
				</fo:static-content>
				<!-- Footer Last -->
				<fo:static-content flow-name="footer-last" display-align="after" font-family="ArialUnicode">
					<!-- background -->
					<fo:block-container position="absolute" top="0mm" left="0mm" width="210mm" height="90mm">
						<fo:block width="210mm" height="50mm">
							<fo:external-graphic src="url('{$url.images}/footer.jpg')" height="50mm" width="210mm"/>
						</fo:block>
					</fo:block-container>
					<!-- Price -->
					<fo:block font-weight="bold" white-space-collapse="true" text-align="end" margin-top="10mm">
						<fo:inline font-weight="bold" font-size="8pt">
							<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.total.recommended.price'],'&lower;','&upper;')"/>
						</fo:inline>&#160;
						<fo:inline color="#BD0B17" font-weight="bold" font-size="14pt">
							<xsl:value-of disable-output-escaping="no" select="//model/price"/>
							
							<xsl:if test="//label[@id='text.pdf.disclaimer.price.marker'] != ''">
								<xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.marker']"/>
							</xsl:if>
						</fo:inline>
					</fo:block>
					<fo:block font-weight="bold" white-space-collapse="true" text-align="end" margin-top="10mm">
						<fo:inline color="#000000" font-size="8pt">
							<xsl:if test="//label[@id='current.date'] != ''">
								<xsl:value-of disable-output-escaping="no" select="//label[@id='current.date']"/>
							</xsl:if>
						</fo:inline>
					</fo:block>

					<!-- Disclaimers -->
					<fo:block width="210mm" font-size="5pt" color="#fff" height="50mm" margin="10mm" space-before="20mm">
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.marker'] != ''">
							<xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.marker']"/>
						</xsl:if>
						&#160;
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text'] != ''">
							<xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text']"/>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text1'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text1']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text2'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text2']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text3'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text3']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text4'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text4']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text5'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text5']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text6'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text6']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text7'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text7']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text8'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text8']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text9'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text9']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text10'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text10']"/></fo:block>
						</xsl:if>
					</fo:block>
				</fo:static-content>
				<!-- Footer Rest-->
				<fo:static-content flow-name="footer-rest" display-align="after" font-family="ArialUnicode">
					<!-- background -->
					<fo:block-container position="absolute" top="0mm" left="0mm" width="210mm" height="90mm">
						<fo:block width="210mm" height="50mm">
							<fo:external-graphic src="url('{$url.images}/footer.jpg')" height="50mm" width="210mm"/>
						</fo:block>
					</fo:block-container>
					<!-- Price -->
					<fo:block font-weight="bold" white-space-collapse="true" text-align="end" margin-top="10mm" margin-right="2mm"	>
						<fo:inline font-weight="bold" font-size="8pt">
							<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.total.recommended.price'],'&lower;','&upper;')"/>
						</fo:inline>&#160;
						<fo:inline color="#BD0B17" font-weight="bold" font-size="14pt">
							<xsl:value-of disable-output-escaping="no" select="//model/price"/>
							
							<xsl:if test="//label[@id='text.pdf.disclaimer.price.marker'] != ''">
								<xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.marker']"/>
							</xsl:if>
						</fo:inline>
					</fo:block>	
					<fo:block font-weight="bold" white-space-collapse="true" text-align="end" margin-top="10mm">
						<fo:inline color="#000000" font-size="8pt">
							<xsl:if test="//label[@id='current.date'] != ''">
								<xsl:value-of disable-output-escaping="no" select="//label[@id='current.date']"/>
							</xsl:if>
						</fo:inline>
					</fo:block>
					
					<!-- Disclaimers -->
					<fo:block width="210mm" font-size="5pt" color="#fff" height="50mm" margin="10mm" space-before="20mm">
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.marker'] != ''">
							<xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.marker']"/>
						</xsl:if>
						&#160;
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text'] != ''">
							<xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text']"/>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text1'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text1']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text2'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text2']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text3'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text3']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text4'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text4']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text5'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text5']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text6'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text6']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text7'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text7']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text8'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text8']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text9'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text9']"/></fo:block>
						</xsl:if>
						<xsl:if test="//label[@id='text.pdf.disclaimer.price.text10'] != ''">
							<fo:block><xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.text10']"/></fo:block>
						</xsl:if>
					</fo:block>
				</fo:static-content>
				<fo:flow flow-name="xsl-region-body" font-family="ArialUnicode">
					<!--  Header -->
					<fo:block height="40mm" space-before="5mm">
						<fo:table width="100%">
							<fo:table-column width="50%"/>
							<fo:table-column width="50%"/>
							<fo:table-body>
								<fo:table-row>
									<fo:table-cell display-align="center">
										<fo:block font-weight="bold" white-space-collapse="true" text-align="start" color="#555555" font-size="14.0pt">
											<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.your.vehicle'],'&lower;','&upper;')"/>
										</fo:block>
										<fo:block font-weight="bold" white-space-collapse="true" text-align="start" color="#000000" font-size="36.0pt">
											<fo:inline>
												<xsl:value-of disable-output-escaping="no" select="translate(//model/name,'&lower;','&upper;')"/>&#160;
											</fo:inline>
											<fo:inline color="#707070">
												<xsl:value-of disable-output-escaping="no" select="translate(//model/gbe/grade/name, '&lower;','&upper;')"/>
											</fo:inline>
										</fo:block>
										<fo:block font-weight="bold" white-space-collapse="true" text-align="end">
											<fo:inline font-weight="bold" font-size="8pt">
												<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.total.recommended.price'],'&lower;','&upper;')"/>
											</fo:inline>&#160;
										<fo:inline color="#BD0B17" font-weight="bold" font-size="14pt">
												<xsl:value-of disable-output-escaping="no" select="//model/price"/>
												&#160;
												<xsl:if test="//label[@id='text.pdf.disclaimer.price.marker'] != ''">
													<xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.disclaimer.price.marker']"/>
												</xsl:if>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block text-align="right" font-size="8pt">
											<fo:inline>
												<fo:external-graphic src="{$modelImage}" alignment-baseline="central" height="40mm"/>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
					</fo:block>
					<!-- Standard Equipments -->
					<fo:block width="210mm" space-before="5mm">
						<fo:table width="100%" break-before="column">
							<fo:table-column width="50%"/>
							<fo:table-column width="50%"/>
							<fo:table-header>
								<fo:table-row>
									<fo:table-cell font-weight="bold" number-columns-spanned="2">
										<fo:block padding="1mm" height="4mm" line-height="4mm" white-space-collapse="true" text-align="start" color="#676767" font-size="8.0pt" background-image="{$url.images}/BarBg.jpg">
											<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.standard.equipments'],'&lower;','&upper;')"/>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-header>
							<fo:table-body font-size="6.0pt" color="#000000">
								<fo:table-row>
									<!-- Equipment class: Safety -->
									<fo:table-cell padding-top="1mm" padding-left="2mm">
										<fo:block/>
										<xsl:call-template name="equipment">
											<xsl:with-param name="classId">0</xsl:with-param>
										</xsl:call-template>
									</fo:table-cell>
									<!-- Equipment class: Equipment -->
									<fo:table-cell padding-top="1mm" padding-left="2mm">
										<fo:block/>
										<xsl:call-template name="equipment">
											<xsl:with-param name="classId">1</xsl:with-param>
										</xsl:call-template>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row>
									<!-- Equipment class: Interior/Exterior -->
									<fo:table-cell padding-top="1mm" padding-left="2mm">
										<fo:block/>
										<xsl:call-template name="equipment">
											<xsl:with-param name="classId">2</xsl:with-param>
										</xsl:call-template>
									</fo:table-cell>
									<!-- Equipment class: Technology -->
									<fo:table-cell padding-top="1mm" padding-left="2mm">
										<fo:block/>
										<xsl:call-template name="equipment">
											<xsl:with-param name="classId">3</xsl:with-param>
										</xsl:call-template>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
					</fo:block>
					<!-- Your configuration -->
					<fo:block width="190mm" space-before="5mm">
						<fo:table width="190mm" break-before="column">
							<fo:table-column column-width="60mm"/>
							<fo:table-column column-width="100mm"/>
							<fo:table-column column-width="30mm"/>
							<fo:table-header>
								<fo:table-row>
									<fo:table-cell font-weight="bold" number-columns-spanned="3">
										<fo:block/>
										<fo:block padding="1mm" height="4mm" line-height="4mm" white-space-collapse="true" text-align="start" color="#676767" font-size="8.0pt" background-image="{$url.images}/BarBg.jpg">
											<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.your.configuration'],'&lower;','&upper;')"/>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-header>
							<fo:table-body font-size="7.0pt" color="#000000">
								<!-- Grade -->
								<fo:table-row padding-bottom="5mm" border-bottom-style="solid" border-bottom-width="1mm" border-bottom-color="black">
									<fo:table-cell display-align="before" padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
										<fo:block font-weight="bold" padding="1mm" height="4mm" line-height="4mm" white-space-collapse="true" text-align="start" color="#BD0B17" font-size="8.0pt" text-decoration="underline">
											<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.grade'],'&lower;','&upper;')"/>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
										<fo:block space-after="0.5mm" display-align="center">
												<xsl:value-of disable-output-escaping="no" select="//grade/name"/>
										</fo:block>
										<fo:block space-after="0.5mm">
												<xsl:value-of disable-output-escaping="no" select="//body/name"/>
										</fo:block>
										<fo:block>
											<xsl:value-of disable-output-escaping="no" select="//engine/name"/>
										</fo:block>

										
									</fo:table-cell>
									<fo:table-cell padding-top="1mm" padding-left="2mm" text-align="right" border-bottom="0.05mm solid #eee">
										<fo:block font-weight="bold" font-size="8pt">
											<xsl:value-of disable-output-escaping="no" select="//grade/price"/>
										</fo:block>
										<fo:block>
											<xsl:value-of disable-output-escaping="no" select="//label[@id='text.pdf.base.price']"/>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>									
								<!-- Government Incentive -->
								<fo:table-row padding-bottom="5mm" border-bottom-style="solid" border-bottom-width="1mm" border-bottom-color="black">
									<fo:table-cell display-align="before" padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
										<fo:block font-weight="bold" padding="1mm" height="4mm" line-height="4mm" white-space-collapse="true" text-align="start" color="#BD0B17" font-size="8.0pt" text-decoration="underline">
											<xsl:value-of disable-output-escaping="no" select="translate(//grade/governmentIncentive/@label,'&lower;','&upper;')"/>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
										<fo:block space-after="0.5mm">
												<xsl:value-of disable-output-escaping="no" select="//grade/governmentIncentive/@disclaimer"/>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell padding-top="1mm" padding-left="2mm" text-align="right" border-bottom="0.05mm solid #eee">
										<fo:block font-weight="bold" font-size="8pt">
											<xsl:value-of disable-output-escaping="no" select="//grade/governmentIncentive"/>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
												
								<!-- Colour/Trim -->
								<fo:table-row padding-bottom="5mm">
									<fo:table-cell display-align="before" padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
										<fo:block font-weight="bold" padding="1mm" height="4mm" line-height="4mm" white-space-collapse="true" text-align="start" color="#BD0B17" font-size="8.0pt" text-decoration="underline">
											<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.colour.and.trim'],'&lower;','&upper;')"/>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
										<fo:block space-after="0.5mm">
											<fo:external-graphic src="{$url.images}/thePuce.jpg" alignment-baseline="central" height="3mm" width="3mm"/>
											&#160;
											<xsl:value-of disable-output-escaping="no" select="//colour/name"/>
										</fo:block>
										<xsl:if test="//trim/name">
											<fo:block space-after="0.5mm">
												<fo:external-graphic src="{$url.images}/thePuce.jpg" alignment-baseline="central" height="3mm" width="3mm"/>
												&#160;
												<xsl:value-of disable-output-escaping="no" select="//trim/name"/>
											</fo:block>
										</xsl:if>
									</fo:table-cell>
									<fo:table-cell font-weight="bold" font-size="8pt" padding-top="1mm" padding-left="2mm" text-align="right" border-bottom="0.05mm solid #eee">
										<fo:block space-after="0.5mm">
											<fo:inline>&#160;
												<xsl:value-of disable-output-escaping="no" select="//colour/price"/>
											</fo:inline>
										</fo:block>
										<xsl:if test="//trim/name">
											<fo:block space-after="0.5mm">
												<fo:inline>&#160;
													<xsl:value-of disable-output-escaping="no" select="//trim/price"/>
												</fo:inline>
											</fo:block>
										</xsl:if>
									</fo:table-cell>
								</fo:table-row>
								<!-- Options and Accessories -->
								<xsl:if test="model/accessories/accessory">
									<fo:table-row padding-bottom="5mm">
										<fo:table-cell display-align="before" padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
											<fo:block font-weight="bold" padding="1mm" height="4mm" line-height="4mm" white-space-collapse="true" text-align="start" color="#BD0B17" font-size="8.0pt" text-decoration="underline">
												<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.options.and.accessories'],'&lower;','&upper;')"/>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
											<fo:block/>
											<xsl:for-each select="model/accessories/accessory">
												<fo:block space-after="0.5mm">
													<fo:external-graphic src="{$url.images}/thePuce.jpg" alignment-baseline="central" height="3mm" width="3mm"/>
														&#160;
														<xsl:value-of disable-output-escaping="no" select="name"/>
												</fo:block>
											</xsl:for-each>
										</fo:table-cell>
										<fo:table-cell font-weight="bold" font-size="8pt" padding-top="1mm" padding-left="2mm" text-align="right" border-bottom="0.05mm solid #eee">
											<fo:block/>
											<xsl:for-each select="model/accessories/accessory">
												<fo:block space-after="0.5mm">
													<xsl:value-of disable-output-escaping="no" select="price"/>
												</fo:block>
											</xsl:for-each>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<!-- Services -->
								<fo:table-row padding-bottom="5mm">
									<fo:table-cell display-align="before" padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
										<fo:block font-weight="bold" padding="1mm" height="4mm" line-height="4mm" white-space-collapse="true" text-align="start" color="#BD0B17" font-size="8.0pt" text-decoration="underline">
											<xsl:value-of disable-output-escaping="no" select="translate(//label[@id='text.pdf.services'],'&lower;','&upper;')"/>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell padding-top="1mm" padding-left="2mm" border-bottom="0.05mm solid #eee">
										<fo:block/>
										<xsl:for-each select="model/services/service">
											<fo:block space-after="0.5mm">
												<fo:external-graphic src="{$url.images}/thePuce.jpg" alignment-baseline="central" height="3mm" width="3mm"/>
													&#160;
													<xsl:value-of disable-output-escaping="no" select="name"/>
											</fo:block>
										</xsl:for-each>
									</fo:table-cell>
									<fo:table-cell font-weight="bold" font-size="8pt" padding-top="1mm" padding-left="2mm" text-align="right" border-bottom="0.05mm solid #eee">
										<fo:block/>
										<xsl:for-each select="model/services/service">
											<fo:block space-after="0.5mm">
												<xsl:value-of disable-output-escaping="no" select="price"/>
											</fo:block>
										</xsl:for-each>
									</fo:table-cell>
								</fo:table-row>									
							</fo:table-body>
						</fo:table>
					</fo:block>
				</fo:flow>
			</fo:page-sequence>
		</fo:root>
	</xsl:template>
	<xsl:template name="equipment">
		<xsl:param name="classId"/>
		<xsl:for-each select="model/equipmentClasses/equipmentClass[@id=$classId]">
			<fo:block font-size="9pt" font-weight="bold" white-space-collapse="true" text-align="start" space-after="1mm" space-before="1mm">
				<xsl:value-of disable-output-escaping="no" select="translate(name,'&lower;','&upper;')"/>
			</fo:block>
			<xsl:for-each select="equipments/equipment">
				<fo:block>
					<fo:table width="85mm" break-before="column">
						<fo:table-column column-width="5mm"/>
						<fo:table-column column-width="80mm"/>
						<fo:table-body color="#000000">
						<fo:table-row text-align="left">
							<fo:table-cell>
								<fo:block><fo:external-graphic src="{$url.images}/liste.jpg" height="3mm" width="3mm" text-align="top"/></fo:block>
							</fo:table-cell>
							<fo:table-cell text-align="left">
								<fo:block text-align="left"><xsl:value-of disable-output-escaping="no" select="name" /></fo:block>							
							</fo:table-cell>
						</fo:table-row>
						</fo:table-body>
					</fo:table>
				</fo:block>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>